home *** CD-ROM | disk | FTP | other *** search
Java Source | 1999-05-28 | 1.1 KB | 42 lines | [TEXT/CWIE] |
- /*
- * @(#)Renderer.java 1.7 98/08/26
- *
- * Copyright 1997, 1998 by Sun Microsystems, Inc.,
- * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
- * All rights reserved.
- *
- * This software is the confidential and proprietary information
- * of Sun Microsystems, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Sun.
- */
-
- package javax.swing;
-
- import java.awt.Component;
-
- /**
- * Defines the requirements for an object responsible for
- * "rendering" (displaying) a value.
- *
- * @version 1.7 08/26/98
- * @author Arnaud Weber
- */
- public interface Renderer {
- /**
- * Specifies the value to display and whether or not the
- * value should be portrayed as "currently selected".
- *
- * @param aValue an Object object
- * @param isSelected a boolean
- */
- void setValue(Object aValue,boolean isSelected);
- /**
- * Returns the component used to render the value.
- *
- * @return the Component responsible for displaying the value
- */
- Component getComponent();
- }
-